<div class="bg-light lter b-b wrapper-md">
    <h1 class="m-n font-thin h3"><a id="head"></a>系统配置管理</h1>
</div>
<div class="panel panel-default" ng-controller="sys_configViewController">
    <div class="panel-body">
        <ng-form role="form" name="form" class="form-validation">
            <div class="panel panel-default">

                <div class="panel-body">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">类型</label>

                        <div class="col-sm-9">
                            <input type="text" class="form-control  m-b-xs" placeholder="类型" ng-readonly="type == 'update'" ng-model="entity.type"
                                   required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">标签</label>

                        <div class="col-sm-9">
                            <input type="text" class="form-control  m-b-xs" placeholder="标签" ng-model="entity.label" required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">值</label>
                        <div class="col-sm-9">
                            <input type="text" class="form-control  m-b-xs" placeholder="值" ng-model="entity.value" required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">顺序</label>
                        <div class="col-sm-9">
                            <input type="number" class="form-control  m-b-xs" placeholder="顺序" ng-model="entity.sort" required>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">描述</label>
                        <div class="col-sm-9">
                            <textarea  type="text" class="form-control  m-b-xs" placeholder="描述" ng-model="entity.description"></textarea>
                        </div>
                    </div>
                    <div class="line line-dashed b-b line-lg pull-in"></div>
                </div>
            </div>
            <footer class="panel-footer  lter">
                <!-- alert -->
                <div class="m-b-md">
                    <uib-alert ng-repeat="alert in Alert.alerts" type="{{alert.type}}" close="Alert.closeAlert($index)">
                        {{alert.msg}}
                    </uib-alert>
                </div>
                <!-- / alert -->
                <button type="submit" class="btn btn-success" ng-disabled="form.$invalid || saveBtnDisable"
                        ng-click="save(); saveBtnDisable = true;">保存
                </button>
                <button type="submit" class="btn btn-success" ng-click="canle()">返回</button>
            </footer>
        </ng-form>
    </div>
</div>